package org.cometmi.gwt.echo2.shared;

import java.util.Date;

import org.cometmi.gwt.shared.MiObject;

import com.google.gwt.user.client.Window;

public class MyTestObject implements MiObject
{
	private String str;

	public MyTestObject(String str)
	{
		this.str = str;
	}

	public Date myMethod1(String str)
	{
		Window.alert(this.str + " --> " + str);
		return new Date();
	}

	public void myMethod1(Date date)
	{
		Window.alert(this.str + " --> " + date);
	}

	public MyTestObject getCopy()
	{
		return new MyTestObject("copy of " + this.str);
	}

	public MyTestObject wrap(MyTestObject obj)
	{
		return new MyTestObject("wrap of " + obj.str);
	}
}
